{extend name="admin@public/layout/main"}

{block name="search_form"}
<div class="search-form-page-tab-content" id="search-form" style="display:none;">
    <form class="layui-form" lay-filter="laytp_search_form" style="margin-bottom:0px;">
        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="管理员ID">管理员姓名</label>
            <div class="layui-input-inline">
                <select name="search_param[admin_id][value]" id="admin_id"
                    xm-select="search_admin_id"
                    xm-select-search="{:url('admin/auth.user/index')}"
                    xm-select-search-field="nickname"
                    xm-select-search-show-field="nickname"
                    xm-select-search-condition="LIKE"
                    xm-select-height="36px"
                    >
                </select>
                <input type="hidden" name="search_param[admin_id][condition]" value="IN">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="操作页面">操作页面</label>
            <div class="layui-input-inline">
                <input type="text" name="search_param[url][value]" placeholder="请输入操作页面" class="layui-input">
                <input type="hidden" name="search_param[url][condition]" value="LIKE">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="日志标题">菜单位置</label>
            <div class="layui-input-inline">
                <input type="text" name="search_param[title][value]" placeholder="请输入菜单位置" class="layui-input">
                <input type="hidden" name="search_param[title][condition]" value="LIKE">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="参数">参数</label>
            <div class="layui-input-inline">
                <input type="text" name="search_param[content][value]" placeholder="请输入参数" class="layui-input">
                <input type="hidden" name="search_param[content][condition]" value="LIKE">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="IP">IP</label>
            <div class="layui-input-inline">
                <input type="text" name="search_param[ip][value]" placeholder="请输入IP" class="layui-input">
                <input type="hidden" name="search_param[ip][condition]" value="LIKE">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="User-Agent">浏览器</label>
            <div class="layui-input-inline">
                <input type="text" name="search_param[user_agent][value]" placeholder="请输入User-Agent" class="layui-input">
                <input type="hidden" name="search_param[user_agent][condition]" value="LIKE">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <label class="layui-form-label" title="操作时间">操作时间</label>
            <div class="layui-input-inline">
                <input type="text" class="layui-input" name="search_param[create_time][value]" id="create_time" laydate="true" laydate_type="datetime" laydate_range="true" placeholder="请选择时间">
    <input type="hidden" name="search_param[create_time][condition]" value="BETWEEN">
            </div>
        </div>

        <div class="layui-form-item layui-inline">
            <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit lay-filter="laytp"><i class="layui-icon"></i> 搜 索</button>
        </div>
    </form>
</div>
{/block}

{block name="script"}
<script src="__ADMIN_JS__/admin/log.js" charset="utf-8"></script>
{/block}

{block name="js_template"}
{include file="admin/log/toolbar_tpl"}
{include file="admin/log/operation_tpl"}
{/block}